package gui;

public class ClockingEvent {

	private int delta;
	private GUIEvent ev;
	
	public ClockingEvent(GUIEvent e,int d){
		ev = e;
		delta = d;
	}
	
	public GUIEvent getEvent(){
		return ev;
	}
	
	public boolean isObsolete(int d){
		if(ev.getStartAt() == 0){
			delta -= d;
			if (delta == 0){
				return true;
			}else{
				return false;
			}
		}else{
			return false;
		}
	}
	
	public void update(int delta){
		ev.update(delta);
	}
}
